package com.theydream.qeechain.main;

import android.app.Application;
import android.util.Log;

import com.papaya.social.PPYSNSRegion;
import com.papaya.social.PPYSession;
import com.papaya.social.PPYSocial;
import com.papaya.social.PPYSocial.Delegate;

public class MyApplication extends Application {

	public static final String LOG_TAG = "Social Demo";

	@Override
	public void onCreate() {
		super.onCreate();

//		LogUtils.d("Application onCreate lang = %s",Locale.getDefault().getLanguage());

		/**
		 * initialize Papaya Social SDK.
		 */
		PPYSocial.initWithConfig(this, new PPYSocial.Config() {
			public String getApiKey() {
				return "54SO2c8ZwFLINBtn";
			}

			@Override
			public String getChinaApiKey() {
				return "R7YDrbFtBFnZD1BG";
			}

			public PPYSNSRegion getSNSRegion() {
				return PPYSNSRegion.GLOBAL;
			}

			public String getPreferredLanguage() {
				return PPYSocial.LANG_AUTO; //set the preferred language
			}

			public String getAndroidMapsAPIKey() {
			  
				//The Android Maps API Key, please signup for your own at http://code.google.com/android/maps-api-signup.html.
				return "0t2EQqb8aNOyev7eAmrF2dRGGzjGRZl0Hno2hNg"; //key for demo only  
			}

			/*@Override
			public int timeToShowRegistration() {
				return 2;
			}

			@Override
			public int getBillingChannels() {
				return BillingChannel.ZONG | BillingChannel.PAYPAL | BillingChannel.AMAZON | BillingChannel.ALIPAY;
			}

			@Override
			public boolean isLeaderboardVisible() {
				return false;
			}
			
			@Override
			public boolean isSkipEnabledInRegistration() {
				return false; //disable skip link in registration
			}			
			*/
//			@Override
//			public int getBillingChannels() {
//				return BillingChannel.ALL;
//			}


		});
	        

	}
}
